package com.kzj.fun.utils;

import java.awt.*;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CursorUtil {
    static Map<Cursor,Integer> cursorSizeMap=new ConcurrentHashMap<>();
    static public int getCursorSize(Cursor cursor){
        return cursorSizeMap.computeIfAbsent(cursor,key->calculateCursorSize(key));
    }
    static private int calculateCursorSize(Cursor cursor){
       return 32;
    }
}
